package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;

@Setter@Getter
public class CustomerQueryObject extends QueryObject{

    private String keyword; //客户姓名/身份证/邮箱
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    private String idNo;
    private String tel;
    private String chargeUser_name;

    private Integer status;


    public String getKeyword(){

        return StringUtils.hasLength(keyword)? keyword:null;
    }
    public String getIdNo(){

        return StringUtils.hasLength(idNo)? idNo:null;
    }
    public String getTel(){

        return StringUtils.hasLength(tel)? tel:null;
    }
    public String getChargeUser_name(){

        return StringUtils.hasLength(chargeUser_name)? chargeUser_name:null;
    }
}
